package com.konsung.ksdc.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/4/25 0025.
 */
public class ProductInfoBean implements Parcelable {
    private String productId; //产品id

    private String productIconUrl; //产品图标存储地址

    private String productName; //产品名字

    private String marketPrice; //产品市场价

    private String memberPrice; //产品会员价

    @Override
    public String toString() {
        return "ProductInfoBean{" +
                "productId='" + productId + '\'' +
                ", productIconUrl='" + productIconUrl + '\'' +
                ", productName='" + productName + '\'' +
                ", marketPrice='" + marketPrice + '\'' +
                ", memberPrice='" + memberPrice + '\'' +
                '}';
    }

    /**
     * 有参构造
     * @param productId 产品id
     * @param productIconUrl 产品图标存储地址
     * @param productName 产品名字
     * @param marketPrice 产品市场价
     * @param memberPrice 产品会员价
     */
    public ProductInfoBean(String productId, String productIconUrl, String
            productName, String marketPrice, String memberPrice) {
        this.productId = productId;
        this.productIconUrl = productIconUrl;
        this.productName = productName;
        this.marketPrice = marketPrice;
        this.memberPrice = memberPrice;
    }

    /**
     * @return 产品id
     */
    public String getProductId() {
        return productId;
    }

    /**
     * @param productId 产品id
     */
    public void setProductId(String productId) {
        this.productId = productId;
    }

    /**
     * @return 产品图标存储地址
     */
    public String getProductIconUrl() {
        return productIconUrl;
    }

    /**
     * @param productIconUrl 产品图标存储地址
     */
    public void setProductIconUrl(String productIconUrl) {
        this.productIconUrl = productIconUrl;
    }

    /**
     * @return 产品名字
     */
    public String getProductName() {
        return productName;
    }

    /**
     * @param productName 产品名字
     */
    public void setProductName(String productName) {
        this.productName = productName;
    }

    /**
     * @return 产品市场价
     */
    public String getMarketPrice() {
        return marketPrice;
    }

    /**
     * @param marketPrice 产品市场价
     */
    public void setMarketPrice(String marketPrice) {
        this.marketPrice = marketPrice;
    }

    /**
     * @return 产品会员价
     */
    public String getMemberPrice() {
        return memberPrice;
    }

    /**
     * @param memberPrice 产品会员价
     */
    public void setMemberPrice(String memberPrice) {
        this.memberPrice = memberPrice;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.productId);
        dest.writeString(this.productIconUrl);
        dest.writeString(this.productName);
        dest.writeString(this.marketPrice);
        dest.writeString(this.memberPrice);
    }

    /**
     * 序列化
     * @param in 序列化
     */
    protected ProductInfoBean(Parcel in) {
        this.productId = in.readString();
        this.productIconUrl = in.readString();
        this.productName = in.readString();
        this.marketPrice = in.readString();
        this.memberPrice = in.readString();
    }

    public static final Parcelable.Creator<ProductInfoBean> CREATOR = new Parcelable
            .Creator<ProductInfoBean>() {
        @Override
        public ProductInfoBean createFromParcel(Parcel source) {
            return new ProductInfoBean(source);
        }

        @Override
        public ProductInfoBean[] newArray(int size) {
            return new ProductInfoBean[size];
        }
    };
}
